﻿/*-------------------------------------------------------------------------
* 命名空间: XrayDirection.Common/GlobalValues 
* 类   名: GlobalValues
* 功   能: N/A
* 时   间: 2024-08-28 17:26:31
* 版   本: V1.0
* 作   者: Fioman
* 格   言: Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using System.Collections.Generic;
using XrayDirection.Common.EnumVal;

namespace XrayDirection.Common
{
    public static class GlobalValues
    {
        /// <summary>
        /// 设备编码
        /// </summary>
        public static string? MachineCode = "HdXray";
        /// <summary>
        /// Eap固定的访问URL
        /// </summary>
        public static string? EapFixedUrl = "http://127.0.0.1:8028/";
        public static string? WebApiUrl = "http://localhost:8026/EAPService/";
        public static string panelId = "Test_panelId";

        public static int InSpeed = 590;
        public static int OutSpeed = 680;
        internal static string requestAttr = string.Empty;
        internal static string upSysName = "Eap";
        internal static string palletNum = "Test_pallet_num";
        internal static string lineCode = MachineCode;
        internal static string? currentLotId = ""; // 当前作业的批号,上报数据的时候使用.
        internal static object currentOrderId = ""; // 当前作业的批号
        internal static double disX = 0; // 当前作业的面板ID,上报数据的时候使用.
        internal static double disY = 0;
        internal static double disF = 0;
        internal static double disD = 0;
        internal static int okCount = 0;
        internal static int ngCount = 0;
        internal static int totalCount = 0; // 当前作业的批号,上报数据的时候使用.
        internal static double firstOffset = 0;
        internal static double secondOffset = 0;
        internal static double dyxray01 = 0;
        internal static double dlxray01 = 0;
        internal static double dyxray02 = 0;
        internal static double dlxray02 = 0;


        public static int DeviceState = (int)StatusCode.待机;
        public static bool FirstDeviceRequest = false;  // 第一次状态是否上报

        public static List<string> AlarmHappenList = new List<string>(); // 发生的报警列表
    }
}
